ARDK for Android/com.nianticlabs.ardk.utils/ImageMath/affineCrop
affineCrop
[androidJvm]
fun affineCrop(source: Size, target: Size): Matrix
Returns an affine transformation that crops the source size to match the aspect ratio of the target size.
Return
An affine transformation matrix that crops the source to fit the target aspect ratio.
Parameters
androidJvm
| source | The size of the source container. |
| target | The size of the target container. |